/**
 * Created by hunk on 2017/4/9.
 */
import de.codecentric.boot.admin.config.EnableAdminServer;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;

@Controller
@EnableAutoConfiguration
@Configuration
@EnableAdminServer
public class Application extends SpringBootServletInitializer {

   /* @RequestMapping("/")
    @ResponseBody
    String home() {
        return "Hello World!";
    }*/
   @Override
   protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
       return application.sources(Application.class);
   }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
}